﻿using Server.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.NetProtocol
{
    class RPCParser
    {
        const char DefaultSplit = ' ';

        ProtocolParser parser = new(ParserType.UTF8);

        public byte[] Encode(string command)
        {

            return parser.Encode(command);
        }

        //public string[] Decode(byte[] data)
        //{
             

        //}
    }

    struct RPCCommand
    {
        public string[] args;
    }
}
